PHP Classes

December 6, 2009 · 18 views · 0 comments

PHP Classes
taken by : Dedric Mauriac on Woodbridge (10, 4, 90)
blog HUD!

About

After learning much about implementing classes in PHP, I went back and encapsulated many related methods into their own classes. I now have a database class that simplifies a lot of my logic. Since the database is at the core of my web application, every page broke as a result. The handing "log4php" class that I made the other day was a great help in tracking down problems that I missed. The infrastructure of this project is really starting to make things look very simple and clean. Perhaps I should look into unit testing against the PHP code as well. Not all errors can be caught with my logging class if the PHP code doesn't compile. From Dedric Mauriac via bloghud.com